Skip to content

fix(npm): drop the coven bin alias to end the @opencoven/cli collision#140

Merged
BunsDev merged 1 commit into
mainfrom
fix/drop-coven-bin-alias
Jul 7, 2026
Merged

fix(npm): drop the coven bin alias to end the @opencoven/cli collision#140
BunsDev merged 1 commit into
mainfrom
fix/drop-coven-bin-alias

Conversation

@BunsDev

@BunsDev BunsDev commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Drops the coven bin alias from @opencoven/coven-code so it no longer collides with the Coven daemon CLI's coven bin from @opencoven/cli.

Context

Changes

  • npm/package.json: bin map now coven-code + coven-cave only.
  • install.sh: stops symlinking coven, removes a stale coven symlink from older installs, updated summary output.
  • install.ps1: stops copying coven.exe, moves a stale coven.exe aside on upgrade.
  • README.md, docs/index.md, docs/installation.md, docs/src/content/{getting-started,installation}.js: alias references updated; shell-completion snippets now use coven-code.
  • scripts/prepare-npm-package.test.mjs: bin map expectation updated.

Validation

  • git diff --check — clean
  • bash -n install.sh — ok
  • node -e "JSON.parse(...npm/package.json)" — valid JSON
  • node --test scripts/prepare-npm-package.test.mjs — 1 pass, 0 fail
  • Not run: cargo suite — no Rust changes; install.ps1 syntax not checked (no pwsh on this host), change is a mechanical variable removal.

PR Readiness

  • Diff is limited to the intended files.
  • Generated files were not edited by hand (only the bin map in npm/package.json; the stamped version field is untouched).

The coven command belongs to the Coven daemon CLI (@opencoven/cli), which
execs into coven-code for the TUI when it is on PATH. Shipping a competing
coven bin from @opencoven/coven-code made the command depend on install
order for dual-install users.

- npm/package.json: bin map keeps coven-code + coven-cave only
- install.sh / install.ps1: stop creating the coven alias and clean up
  stale coven symlinks/exes left by older installers
- docs + site content: alias references updated, completions use coven-code
- prepare-npm-package.test.mjs: bin map expectation updated

fixes #139

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 7, 2026 11:41
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jul 7, 2026 11:41am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the coven npm bin alias from @opencoven/coven-code to avoid collisions with the Coven daemon CLI’s coven command (@opencoven/cli), updating installers, docs, and the npm-prepare test to match.

Changes:

  • Drop coven from the npm bin map, keeping coven-code and coven-cave.
  • Update install scripts to stop installing coven and to clean up stale aliases from older installs.
  • Update docs/site content and the npm packaging test expectation to reference coven-code (including shell completion snippets).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/prepare-npm-package.test.mjs Updates expected npm bin map to remove coven.
README.md Updates install instructions to remove coven alias mention and clarify daemon ownership.
npm/package.json Removes coven from bin map to prevent global install collisions.
install.sh Stops creating coven alias; adds cleanup for stale coven from older installs; updates summary output.
install.ps1 Stops installing coven.exe; renames aside stale coven.exe on upgrade; updates output.
docs/src/content/installation.js Updates web installation copy and completion examples to use coven-code.
docs/src/content/getting-started.js Updates getting-started copy to remove coven alias mention and clarify daemon ownership.
docs/installation.md Updates installation docs to remove coven alias mention and update completion examples to coven-code.
docs/index.md Updates docs homepage to use coven-code instead of coven for interactive run instructions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread install.sh
Comment on lines +118 to +122
# Remove any `coven` symlink left by older installers — that name belongs to
# the Coven daemon CLI (@opencoven/cli).
if [[ -L "${INSTALL_DIR}/coven" ]]; then
rm -f "${INSTALL_DIR}/coven"
fi
Comment thread docs/installation.md
@@ -297,15 +298,15 @@ cross build --release --locked --package claurst --target aarch64-unknown-linux-
## Shell Completions

Coven does not currently ship a dedicated `completions` subcommand. All
<h2>Shell Completions</h2>

<p>Coven does not currently ship a dedicated completions subcommand. All flags can be discovered via <code>coven --help</code>. If you want basic tab completion in bash or zsh, use the generic completion helper built into your shell:</p>
<p>Coven does not currently ship a dedicated completions subcommand. All flags can be discovered via <code>coven-code --help</code>. If you want basic tab completion in bash or zsh, use the generic completion helper built into your shell:</p>
@BunsDev
BunsDev merged commit cd8a4dd into main Jul 7, 2026
2 checks passed
@BunsDev
BunsDev deleted the fix/drop-coven-bin-alias branch July 7, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm: coven bin collides between @opencoven/coven-code and @opencoven/cli

2 participants